var o, e = require, t = module, n = exports, i = this && this.__extends || (o = function(e, t) {
    return (o = Object.setPrototypeOf || {
        __proto__: []
    } instanceof Array && function(e, t) {
        e.__proto__ = t;
    } || function(e, t) {
        for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
    })(e, t);
}, function(e, t) {
    function n() {
        this.constructor = e;
    }
    o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, 
    new n());
}), a = this && this.__decorate || function(e, t, n, o) {
    var a, c = arguments.length, i = c < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
    if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) i = Reflect.decorate(e, t, n, o); else for (var r = e.length - 1; 0 <= r; r--) (a = e[r]) && (i = (c < 3 ? a(i) : 3 < c ? a(t, n, i) : a(t, n)) || i);
    return 3 < c && i && Object.defineProperty(t, n, i), i;
};

Object.defineProperty(n, "__esModule", {
    value: !0
});

var r = e("GameData"), s = e("AdManager"), c = e("AudioManager"), l = e("UIManager"), d = e("WebManager"), u = e("Global"), p = e("PrefabView"), h = cc._decorator, f = h.ccclass, g = (h.property, 
function(t) {
    function e() {
        var e = null !== t && t.apply(this, arguments) || this;
        return e.isNewActivityPop = 1, e;
    }
    return i(e, t), e.prototype.onClickBack = function() {
        var e;
        c.default.getInstance().playAudio("按钮2"), d.default.getInstance().sentLog("点击新年活动返回按键"), 
        r.GD.isNewActivityPop = this.isNewActivityPop, this.hidePnl(), 0 < u.G.queue.length && (1 == (e = u.G.queue.shift()).type ? l.default.getInstance().loadPnl(e.name) : 2 == e.type && l.default.getInstance().loadPopPnl(e.name, e.data));
    }, e.prototype.onClickGet = function() {
        c.default.getInstance().playAudio("按钮2"), d.default.getInstance().sentLog("点击新年活动抽奖按键"), 
        l.default.getInstance().loadPnl("newActivity", null, function() {
            l.default.getInstance().hideAllPnl(), s.default.getInstance().hideAllBanner();
        });
    }, e.prototype.onToggle = function(e) {
        e.isChecked ? this.isNewActivityPop = 0 : this.isNewActivityPop = 1;
    }, e.prototype.onEnable = function() {
        cc.tween(this.node).to(.1, {
            scale: 1.1
        }).to(.1, {
            scale: 1
        }).call(function() {}).start();
    }, a([ f ], e);
}(p.default));

n.default = g;